package com.bledanliaar;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;

//import com.blutetoothlibrary.BtLibrary;
import com.utils.LogUtils;

/**
 * Created by Administrator on 2017/6/8.
 */

public class BluetoothPrint extends Activity  implements View.OnClickListener{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.bluetooth_print);
        findViewById(R.id.connect_bluetooth).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int  id =v.getId();
        switch (id){
            case R.id.connect_bluetooth:
//                if(BtLibrary.getInstance().initialize(this)){
//                    BtLibrary.getInstance().connectBlt("AA:3D:78:AA:FF:18");
//                    LogUtils.e("初始化成功");
//                }else{
//                    LogUtils.e("初始化失败");
//                };
//                break;
        }
    }
}
